package cn.edu.lingnan.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult<T> {
    private Integer code; //200成功，非200失败
    private String msg;
    private T data;

    public JsonResult (Integer code, String message) {
        this.code = code;
        this.msg = message;
    }
}
